#pragma once
#include <windows.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <map>
#include <string>
#include <algorithm>
#include "utility/Gets.h"
#include "utility/Defs.h"
using namespace std;

class cShaderMgr
{
public:
	void PushShader(WCHAR* shaderPath,string shaderKey);
	ID3DXEffect* GetShader(string shaderKey);
	void ReleaseAll();
private:
	LPDIRECT3DDEVICE9 m_pDevice9;
	map<string,ID3DXEffect*> mapShader;
};
